<%@ page import="java.util.*" %>  
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<jsp:useBean id="simulatorBean" class="beans.TempSimulaorBean" scope="session"/>
<jsp:setProperty name="simulatorBean" property="*"/> 
<HTML>
<head>
<meta http-equiv="refresh" content="6"> 
<BODY>

<br>


  <table BORDER=5 ALIGN="CENTER" cellspacing=3 cellpadding=3>
    <tr>
      <td colspan=3><b><center>
        Current Events</b></center></td>
    </tr>
    <tr>
      <td width=100><b>Event Message</b></td>
      <td width=100><b>Event ID</b></td>
      <td width=100><b>Sender ID</b></td>
    </tr>
    
    <%
    List<EventPackage.Event> list= simulatorBean.getCurrentEvents(); // new ArrayList<EventPackage.Event>();
//    for(EventPackage.Event e: list){
	for(int i=list.size()-1; i>0;i--){
		
    	%>
    	<tr>
      <td>
    	<%=list.get(i).GetMessage()%>
    	</td>
      <td>
    	<%=list.get(i).GetEventId()%>
    	</td>
      <td>
    	<%=list.get(i).GetSenderId()%>
    	</td>
    </tr>
    
    	<%
    }
    %>
   
    
</table>
<br>

</BODY>
</HTML>